<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<button onclick="openDialogNoSize()">点我</button>

<script>
    function openDialog() {
        var obj = new Object();
        obj.name="i5tt";
        window.showModelessDialog("dialog.html",obj,"dialogWidth=200px;dialogHeight=100px");
    }
    function openDialogNoSize() {
        var obj = new Object();
        obj.name="i5tt";
        window.showModalDialog("dialog.html",obj);
    }


</script>

</body>
</html>